<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>

    <script>
        let arr = [
                '杨青山',
                '代畅畅',
                '黄保亭',
                '齐展',
                '许掣',
                '刘昕乐',
                '曹学杰',
                '刘学源'
        ]

        console.log(arr);

        // Math.floor(Math.random()*(arr.length-1-0+1)+0)
        // console.log(Math.floor(Math.random()*(arr.length)));
        let index = Math.floor(Math.random()*(arr.length))
        
        console.log(arr[index],index);
        
        


        
    </script>
    
</body>
</html>